package cc.aiee.demo.springboot.basic.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.Data;
import lombok.ToString;

@Component
@ToString
@Data
public class ChinaPayProperties {

	@Value("${pay.chinapay.merchant.id}")
	private String merchantId;

	@Value("${pay.chinapay.sign.password}")
	private String password;

	@Value("${pay.chinapay.sign.file}")
	private String signFile;

	@Value("${pay.chinapay.verify.file}")
	private String verifyFile;

	@Value("${pay.chinapay.bg.url}")
	private String merBgUrl;
	
	@Value("${pay.chinapay.bg.refund.url}")
	private String merBgRefundUrl;

	/**
	 * 是否开启沙盒模式
	 */
	@Value("${pay.chinapay.open_sandbox:false}")
	private boolean isOpenSandbox;

}
